<?php
class EventController extends Henry_Controller_Action
{
    public function init()
    {
        parent::init();
        $this->_helper->layout->setLayout('other');
    }
    public function indexAction(){
       $eventOb = new Henry_Event_Event();
       $id = $this->_request->getParam("id");
       $data = $eventOb->find($id)->toArray();
       $this->view->eItem = $data[0];

       $data = $eventOb->fetchAll("clip_id != {$id}","create_date desc")->toArray();
       $this->view->list = $data;
//        Henry_TestUtil::printDie($this->view->clipItem);
        
    }

    public function onhomeAction(){
         $this->_helper->layout->setLayout('index');
         $eventOb = new Henry_Event_Event();
         $data = $eventOb->fetchAll(null,"create_date desc",2)->toArray();
         $this->view->items = $data;
    }

}

